﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;

namespace M5.GeminiHybird.Core.Attribute
{
    internal class CanReflectionAttribute : System.Attribute
    {

        internal static bool HasThisAttribute(PropertyInfo propertyInfo)
        {
            var attrs = propertyInfo.GetCustomAttributes(false);
            int count = attrs.Count(attr => attr is CanReflectionAttribute);
            
            return count > 0 ? true : false;
        }


        
    }
}
